﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Restrito/Site.Master" AutoEventWireup="true" CodeBehind="frmPessoa.aspx.cs" Inherits="WEB.Restrito.Editar.frmPessoa" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">


  <asp:UpdatePanel ID="updPanel" runat="server">
        <ContentTemplate>
            <div align="center">
                <div class="alert-message error">
                    <asp:Label ID="lblErro" runat="server" Font-Bold="True"></asp:Label>
                </div>
                <div class="alert-message success">
                    <asp:Label ID="lblSucesso" runat="server" Font-Bold="True" ></asp:Label>
                </div>
                <div class="alert-message alert">
                    <asp:Label ID="lblAlerta" runat="server" Font-Bold="True" ></asp:Label>
                </div>
            </div>

            
            <asp:MultiView ID="mtv" runat="server">
                <asp:View ID="viewListagem" runat="server" >
                    <asp:Panel ID="pnlListagem" runat="server" DefaultButton="btnSalvar">
                         <div style="float: left; height: auto; width:100%; border-bottom:1px solid #CCC; "> 
                            <h3><asp:Image ID="Titulo_Imagem" runat="server" ImageUrl="~/Images/Icons/icon_panel_edit.png" /> Pessoa - Editar<asp:Label ID="Label1" runat="server" Text="" CssClass="lbl" /></h3> 
                        </div>

                        <br clear="all" />

                        <div style="float: left; height: auto; width:100%; margin-top:10px;">

                            <div style="float:left; margin-left:0px;">
                                <asp:Label ID="Label2" runat="server" AssociatedControlID="txtID" Width="120px" Text="IDentificador:" CssClass="lbl" /><br />
                                <asp:TextBox ID="txtID" runat="server" Width="120px" CssClass="readOnly"  MaxLength="30" ReadOnly="true"></asp:TextBox>
                            </div>
                            <div style="float:left; height:auto; margin-left:10px;">
                                <asp:Label ID="Label6" runat="server" AssociatedControlID="txtNome" Width="60px" Text="Email:" CssClass="lbl" /><br />
                                <asp:TextBox ID="txtEmail" runat="server" Width="340px" CssClass="textBox"  MaxLength="300" ></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RFV_txtEmail" ControlToValidate="txtEmail" runat="server" Display="None" ErrorMessage="Por favor, preencha o campo Email."></asp:RequiredFieldValidator>
                                <asp:ValidatorCalloutExtender ID="VCE_txtEmail" Enabled="True" TargetControlID="RFV_txtEmail" runat="server"> </asp:ValidatorCalloutExtender>
                            </div>

                            <div style="float:left; height:auto; margin-left:10px;">
                                <asp:Label ID="lbDecricao" runat="server" AssociatedControlID="txtNome" Width="60px" Text="Nome:" CssClass="lbl" /><br />
                                <asp:TextBox ID="txtNome" runat="server" Width="340px" CssClass="textBox"  MaxLength="300" ></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RFV_txtNome" ControlToValidate="txtNome" runat="server" Display="None" ErrorMessage="Por favor, preencha o campo Nome."></asp:RequiredFieldValidator>
                                <asp:ValidatorCalloutExtender ID="VCE_txtNome" Enabled="True" TargetControlID="RFV_txtNome" runat="server"> </asp:ValidatorCalloutExtender>
                            </div>

                        </div>

                                <br clear="all" />

                                <div style="float:left; height:auto; width:100%;">
                                    <div style="float:left; height:auto; margin-left:0px;">
                                        <asp:Label ID="Label3" runat="server" AssociatedControlID="txtCPF" Text="CPF:"></asp:Label><br />
                                        <asp:TextBox ID="txtCPF" runat="server" Width="120px" CssClass="textBox" ></asp:TextBox>
                                        <asp:MaskedEditExtender ID="MEE_txtCPF" 
                                        runat="server" CultureAMPMPlaceholder="" CultureCurrencySymbolPlaceholder="" 
                                        CultureDateFormat="" CultureDatePlaceholder="" CultureDecimalPlaceholder="" 
                                        CultureThousandsPlaceholder="" CultureTimePlaceholder="" Enabled="True"
                                        ClearMaskOnLostFocus="true"
                                        Mask="999,999,999-99" MaskType="None" TargetControlID="txtCPF">
                                        </asp:MaskedEditExtender>
                                        <asp:RequiredFieldValidator ID="RFV_txtCPF" ControlToValidate="txtCPF" runat="server" Display="None" ErrorMessage="Por favor, informe o campo CPF!" ></asp:RequiredFieldValidator>
                                        <asp:ValidatorCalloutExtender ID="VCE_txtCPF" runat="server" Enabled="True" TargetControlID="RFV_txtCPF"> </asp:ValidatorCalloutExtender>
                                    </div>
                                    <div style="float:left; height:auto; margin-left:10px;">
                                        <asp:Label ID="Label4" runat="server" AssociatedControlID="txtDtNascimento" Text="Dt. Nascimento:"></asp:Label><br />
                                        <asp:TextBox ID="txtDtNascimento" runat="server" Width="170px" CssClass="textBox" ></asp:TextBox>
                                        <asp:MaskedEditExtender ID="MEE_txtDtNascimento" 
                                        runat="server" CultureAMPMPlaceholder="" CultureCurrencySymbolPlaceholder="" 
                                        CultureDateFormat="" CultureDatePlaceholder="" CultureDecimalPlaceholder="" 
                                        CultureThousandsPlaceholder="" CultureTimePlaceholder="" Enabled="True"
                                        ClearMaskOnLostFocus="true"
                                        Mask="99/99/9999" MaskType="Date" TargetControlID="txtDtNascimento">
                                        </asp:MaskedEditExtender>
                                        <asp:CalendarExtender ID="CE_txtDtInicial" runat="server"  Format="dd/MM/yyyy" TargetControlID="txtDtNascimento"></asp:CalendarExtender>
                                        
                                        <asp:RequiredFieldValidator ID="RFV_txtDtNascimento" ControlToValidate="txtDtNascimento" runat="server" Display="None" ErrorMessage="Por favor, informe o campo Data Nascimento!" ></asp:RequiredFieldValidator>
                                        <asp:ValidatorCalloutExtender ID="VCE_txtDtNascimento" runat="server" Enabled="True" TargetControlID="RFV_txtDtNascimento"> </asp:ValidatorCalloutExtender>
                                    </div>
                                    <div style="float:left; height:auto; margin-left:10px;">
                                        <asp:Label ID="Label5" runat="server" AssociatedControlID="txtTelefone" Text="Telefone:"></asp:Label><br />
                                        <asp:TextBox ID="txtTelefone" runat="server" Width="170px" CssClass="textBox" ></asp:TextBox>
                                        <asp:MaskedEditExtender ID="MEE_txtTelefone" 
                                        runat="server" CultureAMPMPlaceholder="" CultureCurrencySymbolPlaceholder="" 
                                        CultureDateFormat="" CultureDatePlaceholder="" CultureDecimalPlaceholder="" 
                                        CultureThousandsPlaceholder="" CultureTimePlaceholder="" Enabled="True"
                                        ClearMaskOnLostFocus="true"
                                        Mask="(99) 9999-9999" MaskType="Number" TargetControlID="txtTelefone">
                                    </asp:MaskedEditExtender>
                                    
                                        <asp:RequiredFieldValidator ID="RFV_txtTelefone" ControlToValidate="txtTelefone" runat="server" Display="None" ErrorMessage="Por favor, informe o campo Telefone!" ></asp:RequiredFieldValidator>
                                        <asp:ValidatorCalloutExtender ID="VCE_txtTelefone" runat="server" Enabled="True" TargetControlID="RFV_txtTelefone"> </asp:ValidatorCalloutExtender>
                                    </div>

                        <br clear="all" />

                        <div style="float:left; height:auto; margin-top:20px; width:50%;">
                            <asp:Button ID="btnSalvar" runat="server" Text="Salvar" CssClass="btn primary" />
                            <asp:Button ID="btnVoltar" runat="server" Text="Voltar" CssClass="btn close" CausesValidation="false" />
                        </div>
                    </asp:Panel>
                 </asp:View>
            </asp:MultiView>
        </ContentTemplate>
    </asp:UpdatePanel>

</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="MainContent" runat="server">
</asp:Content>
